import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int kg=scanner.nextInt();
        if(kg%2==0&&kg!=2){
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}